package 继承.父类成员访问.子类中访问父类的成员方法.成员方法名字相同;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 姚东名
 * Date: 2024-06-16
 * Time: 15:08
 */
public class Derived extends Base {
    public void methodA(int a) {
        System.out.println("Base中的methodA(int)方法");
    }
    public void methodB(int b) {
        System.out.println("Base中的methodB(int)方法");
    }
}
